/*
* created by Administrator on 2018/12/3
* 好的代码像粥一样,是得用时间和精力熬的。
*/
const mangoose =require('mongoose');
const schemas =require('./schemas');
let createModel = (modelName,schema)=>mangoose.model(modelName,schema);
const User = createModel('User', schemas.userSchema);
const Article =createModel('Article',schemas.articleSchema);
module.exports ={
    User,
    Article
};
